﻿<%@ Page Language="C#" MasterPageFile="~/Provider/CarInsurance/Liberty_CarInsurance.master"
    AutoEventWireup="true" CodeFile="ViewProviderWorkShop.aspx.cs" Inherits="Admin_ViewProviderWorkShop"
    Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="provider_inner">
        <h1>
            View Providers Workshop</h1>
        <div class="right_action">
            <asp:HyperLink runat="server" ID="lnkNewClaimInfo" NavigateUrl="~/Provider/CarInsurance/Workshops/AddNewProviderWorkshop.aspx"
                Text="New"></asp:HyperLink>
        </div>
        <fieldset style="display: none;">
            <dl>
                <dt class="top_action">
                    <label>
                        Select Provider Company Name</label></dt>
                <dd>
                    <asp:DropDownList ID="ddlProviderCompanyName" runat="server" AutoPostBack="true">
                    </asp:DropDownList>
                </dd>
            </dl>
        </fieldset>
        <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True"
            AutoGenerateColumns="False" CellPadding="2" DataKeyNames="WorkShopId,ProviderCompanyId"
            DataSourceID="sqlDsProviderWorkShop" CssClass="progridstyle" GridLines="None"
            OnSelectedIndexChanged="GridView1_SelectedIndexChanged">
            <Columns>
                <asp:BoundField DataField="WorkShopId" HeaderText="WorkShopId" InsertVisible="False"
                    ReadOnly="True" SortExpression="WorkShopId" />
                <asp:BoundField DataField="ProviderCompanyId" HeaderText="ProviderCompanyId" ReadOnly="True"
                    SortExpression="ProviderCompanyId" Visible="False" />
                <asp:BoundField DataField="WSName" HeaderText="WSName" SortExpression="WSName" />
                <asp:BoundField DataField="BlockNo" HeaderText="BlockNo" SortExpression="BlockNo"
                    Visible="False" />
                <asp:BoundField DataField="AreaName" HeaderText="AreaName" SortExpression="AreaName"
                    Visible="False" />
                <asp:BoundField DataField="BuildingName" HeaderText="BuildingName" SortExpression="BuildingName"
                    Visible="False" />
                <asp:BoundField DataField="LevelNo" HeaderText="LevelNo" SortExpression="LevelNo"
                    Visible="False" />
                <asp:BoundField DataField="RoomNo" HeaderText="RoomNo" SortExpression="RoomNo" Visible="False" />
                <asp:BoundField DataField="StreetName" HeaderText="StreetName" SortExpression="StreetName"
                    Visible="False" />
                <asp:BoundField DataField="PostCode" HeaderText="PostCode" SortExpression="PostCode" />
                <asp:BoundField DataField="ZoneName" HeaderText="ZoneName" SortExpression="ZoneName" />
                <asp:BoundField DataField="Country" HeaderText="Country" SortExpression="Country"
                    Visible="False" />
                <asp:CheckBoxField DataField="Status" HeaderText="Status" SortExpression="Status" />
                <asp:BoundField DataField="RefCEUserId" HeaderText="RefCEUserId" SortExpression="RefCEUserId"
                    Visible="False" />
                <asp:BoundField DataField="CreatedDate" HeaderText="CreatedDate" SortExpression="CreatedDate"
                    Visible="False" />
                <asp:BoundField DataField="ModifiedDate" HeaderText="ModifiedDate" ReadOnly="True"
                    SortExpression="ModifiedDate" />
                <asp:BoundField DataField="Info1" HeaderText="Info1" SortExpression="Info1" Visible="False" />
                <asp:BoundField DataField="Info2" HeaderText="Info2" SortExpression="Info2" Visible="False" />
                <asp:BoundField DataField="Info3" HeaderText="Info3" SortExpression="Info3" Visible="False" />
                <asp:BoundField DataField="Info4" HeaderText="Info4" SortExpression="Info4" Visible="False" />
                <asp:BoundField DataField="Info5" HeaderText="Info5" SortExpression="Info5" Visible="False" />
                <asp:BoundField DataField="Info6" HeaderText="Info6" SortExpression="Info6" Visible="False" />
                <asp:BoundField DataField="Info7" HeaderText="Info7" SortExpression="Info7" Visible="False" />
                <asp:BoundField DataField="Info8" HeaderText="Info8" SortExpression="Info8" Visible="False" />
                <asp:BoundField DataField="Info9" HeaderText="Info9" SortExpression="Info9" Visible="False" />
                <asp:BoundField DataField="Info10" HeaderText="Info10" SortExpression="Info10" Visible="False" />
                <asp:CommandField ShowSelectButton="True" SelectText="Edit" />
            </Columns>
            <FooterStyle />
            <PagerStyle />
            <SelectedRowStyle CssClass="progridover" />
            <HeaderStyle CssClass="progridheader" />
            <EditRowStyle />
            <AlternatingRowStyle CssClass="progridodd" />
            <RowStyle CssClass="progrideven" />
        </asp:GridView>
        <asp:SqlDataSource ID="sqlDsProviderWorkShop" runat="server" ConnectionString="<%$ ConnectionStrings:CE_DBConnectionString %>"
            SelectCommand="sprocProviderWorkShopSelectItemList" SelectCommandType="StoredProcedure">
            <SelectParameters>
                <asp:ControlParameter ControlID="ddlProviderCompanyName" Name="ProviderCompanyId"
                    PropertyName="SelectedValue" Type="Int64" />
            </SelectParameters>
        </asp:SqlDataSource>
        <div>
            <asp:ImageButton OnClientClick="javascript:return confirm('Are you sure to go back?');"
                ID="ibtBack" runat="server" ImageUrl="~/Provider/images/buttons/back1.gif" OnClick="ibtBack_Click" />
        </div>
    </div>
</asp:Content>
